You can read a file synchronously in Node.js using the fs.readFileSync() method. Here's an example:
fs.readFileSync()